package figuren;

public class Point
{
	private double	x;
	private double	y;

	public Point(double x, double y)
	{
		this.x = x;
		this.y = y;

	}

	public double getX()
	{
		return this.x;
	}

	public double getY()
	{
		return this.y;
	}

	public String toString(){
		String text = "X ist " + this.x + "; Y ist " + this.y;
		return text;
	}
	
	public static void main(String[] args)
	{
		Point p = new Point(-5, 1);
		System.out.println(p);
	}

}
